"""Setup the rest4databases application"""
import logging

from paste.deploy import appconfig
from pylons import config

from rest4databases.config.environment import load_environment

log = logging.getLogger(__name__)

def setup_config(command, filename, section, vars):
    """Place any commands to setup rest4databases here"""
    conf = appconfig('config:' + filename)
    load_environment(conf.global_conf, conf.local_conf)
    #from rest4databases import model
    #log.info("Droping tables")
    #model.metadata.clear()
    #log.info("Successfully setup")
    #model.metadata.drop_all(bind=config['pylons.g'].sa_engine)

